gc_virtual
} geocache_container;
+typedef struct {
+ int is_html;
+ char *utfstring;
+} utf_string;
+
typedef struct {
geocache_type type;
geocache_container container;
int terr; /* (likewise) */
time_t exported;
char *hint; /* all these UTF8, XML entities removed, May be not HTML. */
- char *desc_short;
- char *desc_long;
+ utf_string desc_short;
+ utf_string desc_long;
} geocache_data ;
-
-
typedef struct xml_tag {
char *tagname;
char *cdata;
signed int get_tz_offset(void);
const char *get_cache_icon(const waypoint *waypointp);
char * xml_entitize(const char * str);
+char * strip_html(const utf_string*);
char * str_utf8_to_cp1252( const char * str );
char * str_utf8_to_ascii( const char * str );
case tt_cache_desc_long:
rtrim(cdatastrp);
if (cdatastrp[0]) {
- wpt_tmp->gc_data.desc_long = xstrdup(cdatastrp);
+ wpt_tmp->gc_data.desc_long.is_html = cache_descr_is_html;
+ wpt_tmp->gc_data.desc_long.utfstring = xstrdup(cdatastrp);
}
break;
case tt_cache_desc_short:
rtrim(cdatastrp);
if (cdatastrp[0]) {
- wpt_tmp->gc_data.desc_short = xstrdup(cdatastrp);
+ wpt_tmp->gc_data.desc_short.is_html = cache_descr_is_html;
+ wpt_tmp->gc_data.desc_short.utfstring = xstrdup(cdatastrp);
}
break;
case tt_cache_terrain: